<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-03 01:21:39
 * @LastEditTime: 2023-11-11 15:44:11
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: 
 */

namespace App\Traits;

use App\Models\Company;
use App\Models\Employee;
use App\Models\User;

trait CompanyTrait
    {
    public function company()
        {
        return $this->belongsTo(Company::class);
        }
    public function customer()
        {
        return $this->belongsTo(Company::class);
        }
    public function supplier()
        {
        return $this->belongsTo(Company::class);
        }
        
    }
